package com.bole.feign;

import com.bole.dto.brand.DicBrandDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "BOLECAR-BACKSTAGE-SERVICE")
public interface DicBrandFeign {


    @GetMapping("/brand/getBrandInfo")
    List<DicBrandDto> getBrandInfo();
    @PostMapping("/brand/saveBrandInfo")
    void saveBrandInfo( @RequestBody DicBrandDto brandDto);
    @PostMapping("/brand/toUpdate")
    DicBrandDto toUpdate(@RequestParam("id") Long id);
    @PostMapping("/brand/updateBrandInfo")
    void updateBrandInfo(@RequestBody DicBrandDto brandDto);
    @PostMapping("/brand/deleteBatch")
    void deleteBatch(@RequestParam("idss") List<Long> idss);


    //通过firstChar查询
    @GetMapping("/brand/getBrandFirstChar")
    List<DicBrandDto> getBrandFirstChar(@RequestParam String firstChar);
}
